package com.bsj.power.common.def.dto.open;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yinhao
 * @version 1.0
 * @description 开放接口传输对象
 * @date 2024/7/11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OpenV1DTO {

    /**
     * 时间戳
     */
    private Long timestamp;
    /**
     * 请求ID
     */
    private String requestId;
    /**
     * 签名
     */
    private String sign;
    /**
     * 编号
     */
    private String workcode;
    /**
     * 登录名
     */
    private String loginid;

    public OpenV1DTO(String loginid, String workcode, Long timestamp, String sign, String requestId) {
        this.loginid = loginid;
        this.workcode = workcode;
        this.timestamp = timestamp;
        this.sign = sign;
        this.requestId = requestId;
    }
}
